﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Kaskelot.SP.UI.Layouts.Pages.Test"%>
<%--<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Kaskelot.SP.UI.Layouts.Pages.Test" MasterPageFile="../../../_catalogs/masterpage/KaskelotMain.master"%>--%>


<asp:content id="PageHead" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">

</asp:content>


<asp:content id="Main" contentplaceholderid="PlaceHolderMain" runat="server">
	<asp:Panel ID="dummy" runat="server">
		<asp:Panel class="content-area" runat="server">
			<asp:Panel ID="pnl_input" runat="server">
				<asp:DropDownList ID="ddl_filter" runat="server"></asp:DropDownList>
				<asp:Button ID="btn_GetByggnader" runat="server" Text="Lista alla byggnader" class="button-link"/>
				<asp:Button ID="btn_GetByggnad" runat="server" Text="Hämta en byggnad" class="button-link"/>
				<hr />
				<asp:Button ID="btn_UpdateByggnad" runat="server" Text="Redigera byggnad" class="button-link"/>
				<asp:Button ID="btn_CreateByggnad" runat="server" Text="Skapa ny byggnad" class="button-link"/>
				<asp:Button ID="btn_DeleteByggnad" runat="server" Text="Ta bort alla byggnader" class="button-link"/>
			</asp:Panel>
			<asp:Panel ID="pnl_output" runat="server" ScrollBars="auto">
				<asp:Repeater ID="rep_repeater" runat="server">
					<HeaderTemplate>
						<table id="myTable" class="search-results">
							<tr class="header-row">
								<th>Byggnad</th>
								<th>Församling</th>
								<th>Valdistrikt</th>
								<th>Typ</th>
								<th>Röstningslokal</th>
								<th>Klar</th>
							</tr>
					</HeaderTemplate>

					<ItemTemplate>
						<tr>
							<td><a onclick="hideElement(myTable);showElement(grd_Results);" href="#">
								<%# ((SearchResult)Container.DataItem).Namn %></a></td>
							<td><%# ((SearchResult)Container.DataItem).Forsamling %></td>
							<td><%# ((SearchResult)Container.DataItem).Valdistrikt %></td>
							<td><%# ((SearchResult)Container.DataItem).Typ %></td>
							<td><%# ((SearchResult)Container.DataItem).Rostningslokal %></td>
							<td><%# ((SearchResult)Container.DataItem).Klar %></td>
						</tr>
					</ItemTemplate>

					<AlternatingItemTemplate>
						<tr class="alternate">
							<td><a onclick="hideElement(myTable);showElement(grd_Results);" href="#">
								<%# ((SearchResult)Container.DataItem).Namn %></a></td>
							<td><%# ((SearchResult)Container.DataItem).Forsamling %></td>
							<td><%# ((SearchResult)Container.DataItem).Valdistrikt %></td>
							<td><%# ((SearchResult)Container.DataItem).Typ %></td>
							<td><%# ((SearchResult)Container.DataItem).Rostningslokal %></td>
							<td><%# ((SearchResult)Container.DataItem).Klar %></td>
						</tr>
					</AlternatingItemTemplate>

					<FooterTemplate>
						</table>
					</FooterTemplate>
				</asp:Repeater>
				<asp:GridView style="width:700px;margin-left:auto;margin-right:auto;	height:600px;" ID="grd_Results" runat="server"></asp:GridView>
			</asp:Panel>
		</asp:Panel>
	</asp:Panel>
</asp:content>

<asp:content id="PageTitle" contentplaceholderid="PlaceHolderPageTitle" runat="server">
Application Page
</asp:content>

<asp:content id="PageTitleInTitleArea" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
My Application Page
</asp:content>
